
const proxy = require ('http-proxy-middleware')

module.exports = function (app) {
    app.use(proxy('/api',{
        target:'https://webservice.juanpi.com',
        changeOrigin:true
    })),
    app.use( proxy('/gsort',{
        target:'https://shop.juanpi.com',
        changeOrigin:true
    })),
    app.use(proxy('/cate', {
        target: 'https://m.juanpi.com',
        changeOrigin: true
    })),
    app.use(proxy('/shopcart', {
        target: 'https://m.juanpi.com',
        changeOrigin: true
    }))
}
